#!/bin/bash
#未完成脚本，需重构

echo "Do you want to double line spaces directly:(yes or no) " anwser1
read
case $anwser1 in
y* | Y*)
        sed 'G' $1
n* | N*)
        echo "Do you want to double line spaces without end line:(yes or no) " anwser2
        read
        case $anwser2 in
        y* | Y*)
                sed '$!G' $1
        n* | N*)
                echo "Do you want to double line spaces without end line and with some spaces in the text:(yes or no) " anwser3
                read
                case $anwser3 in
                y* | Y*)
                        sed '/^$/d ; $!G' $1
                n* | N*)
                        echo "Fuck off!Do youself."
                *)
                        echo "......>"
                esac
        *)
                echo "......>"
        esac
*)
        echo "......>"
esac
